package org.hpin.asset.service;

import org.hpin.asset.dao.AssetDamageInfoDao;
import org.hpin.asset.entity.AssetDamageInfo;
import org.hpin.common.core.orm.BaseEntity;
import org.hpin.common.core.orm.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service(value = "org.hpin.asset.service.AssetDamageInfoService")
@Transactional(rollbackFor = Exception.class)
public class AssetDamageInfoService extends BaseService{

	@Autowired
	private AssetDamageInfoDao assetDinfoDao;
	
	@Override
	public BaseEntity findById(String id) {
		return super.findById(id);
	}

	@Override
	public void save(BaseEntity baseEntity) {
		super.save(baseEntity);
	}
	
	public AssetDamageInfo findMax(){
		return assetDinfoDao.findMax();
	}
	
}
